package routers

import (
	"gitee.com/zhanglibin/gmall/controller/user"
	"github.com/gin-gonic/gin"
)

func InitApiRouters(g *gin.Engine) {
	group := g.Group("/api")
	group.POST("/login", user.Login)
	group.POST("/register", user.Register)
	group.GET("/user/info", user.GetUserInfo)
	group.GET("/user/list", user.GetUserList)
	group.POST("/user/update", user.UpdateUserInfo)
}
